package com.appstore.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AppComment implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    private Long appId;

    private String context;

    private Double rating;

    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Long userId;

    private String userName;

    private Integer isDeleted;

}
